import express from 'express';
import userRoute from './routes/user';
import homeRoute from './routes/home';
import productRoute from './routes/product';
import mineRoute from './routes/mine';
const app = express();
const port = 3000;

// 用户
app.use('/user', userRoute);
// 首页
app.use('/home', homeRoute);
// 商品
app.use('/product', productRoute);
// 我的
app.use('/mine', mineRoute);

app.use(express.static('www'));

app.listen(port, () => console.log(`It-Fresh app listening on port ${port}!`))